package com.example.superoa.model.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.alibaba.fastjson.JSONArray;
import com.example.superoa.model.mappers.TmytestMapper;

@Service
@Transactional(rollbackFor=Exception.class)
public class TmytestService {

		@Autowired
		private TmytestMapper mymapper;
		//查询所有
	public JSONArray findAllsmytest() {
		return mymapper.findAllsmytest();
	}
		//根据试卷名称查询
	public JSONArray findBymytestname(String ttestname) {
		return mymapper.findBymytestname("%"+ttestname+"%");
	}
}